import request from '@/utils/request';

export function queryDistList(params) {
  return request({
    url: '/queryDistList',
    method: 'get',
    params: params
  })
}

export function addDist(data) {
  return request({
    url: '/addDist',
    method: 'post',
    data: data
  })
}

export function deleteDist(params) {
  return request({
    url: '/deleteDist',
    method: 'get',
    params: params
  })
}

export function updateDist(data) {
  return request({
    url: '/updateDist',
    method: 'post',
    data: data
  })
}

export function queryOneDist(params) {
  return request({
    url: '/queryOneDist',
    method: 'get',
    params: params
  })
}

export function addDistItem(data) {
  return request({
    url: '/addDistItem',
    method: 'post',
    data: data
  })
}